<script setup>
const props = defineProps({
  modelValue: Number
})
const emits = defineEmits(['update:modelValue'])
</script>

<template>
  <div class="app-page">
    son子组件---{{ modelValue }}

    <button @click="emits('update:modelValue', modelValue - 1)">修改modelValue</button>
  </div>
</template>

<style scoped>
.app-page {
  width: 150px;
  height: 150px;
  border: 5px solid #000;
}
</style>
